<%@ Page Language="C#" MasterPageFile="~/Default.master" AutoEventWireup="true" CodeFile="DataEntry.aspx.cs" Inherits="Administration_DataEntry" Title="Untitled Page" %>
<%@ Register TagPrefix="Toolbar" TagName="HelpLogout" Src="~/Toolbars/HelpLogoutToolbar.ascx" %>
<%@ Register TagPrefix="Location" TagName="Server" Src="~/Toolbars/ServerLocation.ascx" %>
<%@ Register TagPrefix="Location" TagName="Database" Src="~/Toolbars/DatabaseLocation.ascx" %>
<%@ Register TagPrefix="Location" TagName="Table" Src="~/Toolbars/TableLocation.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="defaultScript" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Breadcrumb" Runat="Server">
    <Location:Server Runat="Server" id="ServerLocation"></Location:Server>
    <Location:Database Runat="Server" id="DatabaseLocation"></Location:Database>
    <Location:Table Runat="Server" id="TableLocation" IsActive="true"></Location:Table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="NavigationPane" Runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPane" Runat="Server">
    <asp:SqlDataSource ID="dataEntryDataSource" runat="server" />
    <asp:SqlDataSource ID="insertOnlyDataSource" runat="server" />
    <div class="DataEntryGrid">
        <asp:GridView  ID="gridView" AllowSorting="True" AllowPaging="true" runat="server" DataSourceID="dataEntryDataSource" 
            AutoGenerateEditButton="true" AutoGenerateDeleteButton="true" AutoGenerateColumns="true" EmptyDataText="No data present" ShowFooter="false" AutoGenerateInsertButton="true" >
            <RowStyle CssClass="TableItem" />
            <AlternatingRowStyle CssClass="AlternateTableItem" />
            <HeaderStyle CssClass="TableHeader" />
            <EditRowStyle CssClass="TableEditItem" />
        </asp:GridView >
<!--
         <asp:DataGrid runat="server" id="dataGrid" SortCommand="dataGrid_Sort" allowSorting="true" allowPaging="true" GridLines="None" AutoGenerateColumns="false" Width="96%" CellPadding="4" CellSpacing="1" >
            <Columns>
                <asp:TemplateColumn HeaderText="Actions">
                </asp:TemplateColumn>
            </Columns>
	        <ItemStyle CssClass="TableItem" />
	        <AlternatingItemStyle CssClass="AlternateTableItem" />
	        <HeaderStyle CssClass="TableHeader" />
	        <EditItemStyle CssClass="TableEditItem" />
        </asp:DataGrid>
-->
    </div>

    <asp:DetailsView  ID="detailView" DefaultMode="Insert" AllowSorting="True" AllowPaging="true" runat="server" DataSourceID="insertOnlyDataSource" 
        AutoGenerateEditButton="true" AutoGenerateDeleteButton="true" AutoGenerateColumns="true" EmptyDataText="No data present" ShowFooter="true" AutoGenerateInsertButton="true" >
        <RowStyle CssClass="TableItem" />
        <AlternatingRowStyle CssClass="AlternateTableItem" />
        <HeaderStyle CssClass="TableHeader" />
        <EditRowStyle CssClass="TableEditItem" />
        <InsertRowStyle CssClass="TableEditItem" />
    </asp:DetailsView >
    
</asp:Content>

